package com.emily.test.service.impl;

import com.emily.test.mapper.TCompanyMapper;
import com.emily.test.model.TCompany;
import com.emily.test.service.TCompanyService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service("tCompanyServiceAgent")
@Transactional(propagation = Propagation.REQUIRED,isolation = Isolation.DEFAULT,timeout=36000,rollbackFor=Exception.class)
public class TCompanyServiceImpl implements TCompanyService {

    @Resource
    private TCompanyMapper tCompanyMapper;

    @Override
    public TCompany selectCompanyInfoByLoginName(String loginName) {
        return tCompanyMapper.getCompanyInfoByLoginName(loginName);
    }
}
